package com.aixx.springcloud.service.impl;

import com.aixx.springcloud.Dao.PaymentDao;
import com.aixx.springcloud.entities.Payment;
import com.aixx.springcloud.service.PaymentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 *
 * @author shkstart
 * @create 2021-01-25 18:45
 */
@Service
public class PaymentServiceimpl implements PaymentService {

    @Autowired
    private PaymentDao dao;

    @Override
    public int create(Payment payment) {
        return dao.create(payment);
    }

    @Override
    public Payment getPaymentById(Long id) {
        return dao.getPaymentById(id);
    }
}
